package reflection;

/**
 * @author oyz
 * @version 1.0.4
 * @description:  反射类的实现
 * @date 2023/2/22 20:49
 */
public class Student {

    private String studentName;
    public int studentAge;

    public Student() {
    }

    private Student(String studentName, int studentAge) {
        this.studentName = studentName;
        this.studentAge = studentAge;
    }


    public String getStudentName() {
        return studentName;
    }



    public void setStudentAge(int studentAge) {
        this.studentAge = studentAge;
    }

    private String show(String message) {
        System.out.println("show: " + studentName + "," + studentAge + "," + message);
        return "testReturnValue";
    }

    @Override
    public String toString() {
        return "Student{" +
                "studentName='" + studentName + '\'' +
                ", studentAge=" + studentAge +
                '}';
    }
}
